var fs = require("fs")
var rs = fs.createReadStream("./index.html")

var http = require("http");
var host = "127.0.0.1";
var port = "8080";
var server = http.createServer()
server.on("request",(request,response)=>{
      rs.pipe(response)
})
server.listen(port,host,()=>{
    console.log("server is runing on http://127.0.0.1:8080")
})